#include "Input.h"

#include "Application.h"
#include <GLFW/glfw3.h>

bool Input::IsKeyPressed(int keycode)
{
    auto window = static_cast<GLFWwindow*>(Application::Get().GetWindow().GetWindow());
    auto status = glfwGetKey(window, keycode);
    return status == GLFW_PRESS || status == GLFW_REPEAT;
}
